package com.yxym.modifier;

public class Test {
    public static void main(String[] args) {
        A a = new A();
        a.m1();
        B b =new B();
        b.speak();
        a.m2();
        a.m1();
        a.m2();
        a.hi();
        //只有默认和public可以修饰类
    }
}
